//
//  ZWLSingerTableViewCell.m
//  ZWLMusic
//
//  Created by dllo on 16/1/7.
//  Copyright © 2016年 ZKJ. All rights reserved.
//

#import "ZWLSingerTableViewCell.h"

@implementation ZWLSingerTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageView1 = [[UIImageView alloc]initWithFrame:CGRectZero];
        [self addSubview:self.imageView1];
        self.label = [[UILabel alloc]initWithFrame:CGRectZero];
        [self addSubview:self.label];
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
   
}

-(void)layoutSubviews {
    [super layoutSubviews];
    self.imageView1.frame = CGRectMake(ptsWIDTH * 10, ptsHEIGTH *10,ptsWIDTH * 120, ptsHEIGTH *80);
    self.label.frame = CGRectMake(ptsWIDTH * 200 , ptsHEIGTH * 20 , ptsWIDTH * 100 , ptsHEIGTH * 50 );
}

-(void)setSingerModel:(ZWLSigerModel *)singerModel {
    if (_singerModel != singerModel) {
        _singerModel = singerModel;
    }
    [self.imageView1 sd_setImageWithURL:[NSURL URLWithString:singerModel.img]];
    self.label.text = singerModel.singer;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
